<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>学生板块</title>
    <link href="/static/evaluate/css/student1.css" rel="stylesheet">
    <link href="/static/evaluate/css/evaluation.css" rel="stylesheet">
    <link href="/static/evaluate/css/star.css" rel="stylesheet">
    <link href="/static/evaluate/css/bootstrap.css" rel="stylesheet">
    <link href="/static/evaluate/css/animate.css" rel="stylesheet">
    <link href="/static/evaluate/css/site.css" rel="stylesheet">
</head>
<body>
<div class="wrap">
    <nav id="w1" class="navbar-default navbar-fixed-top navbar" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#w1-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{% url 's_index' %}">校园互动评价平台</a>
            </div>
            <div id="w1-collapse" class="collapse navbar-collapse">
                <ul id="w2" class="navbar-nav navbar-right nav">
                    <li>
                        <a href="javascript:;" data-toggle="modal" data-target="#notice">联系我们</a>
                    </li>
                    <li>
                        <a href="/blog/">返回互动博客</a>
                    </li>
                    <li>
                        <a href="{% url 'login' %}" >退出 ({{student.user_name}},同学)</a>
                    </li>
                </ul>
            </div>
          
  
        </div>
    </nav>    
    <div class="container">
        <ul class="breadcrumb">
            <li class="active">学生板块</li>
        </ul>       
        <div class="studentbasic-table-index">
            <!--用户信息-->
            <span class="btn btn-default span3">您的信息：</span>
            <div id="w0" class="grid-view">
                <div class="summary">第<b>1-1</b>条，共<b>1</b>条数据.</div>
                    <table class="table table-striped table-bordered">
                        <thead>
                            <tr>
                                <th>
                                    <a href="http://119.29.94.234/evaluation/web/index.php?r=student-basic%2Findex&amp;sort=student_id" data-sort="student_id">学号</a>
                                </th>
                                <th>
                                    <a href="http://119.29.94.234/evaluation/web/index.php?r=student-basic%2Findex&amp;sort=name" data-sort="name">姓名</a>
                                </th>
                                <th>
                                    <a href="http://119.29.94.234/evaluation/web/index.php?r=student-basic%2Findex&amp;sort=dept" data-sort="dept">学院</a>
                                </th>
                                <th>
                                    <a href="http://119.29.94.234/evaluation/web/index.php?r=student-basic%2Findex&amp;sort=class" data-sort="class">班级</a>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr data-key="3">
                                <td>{{student.student_id}}</td>
                                <td>{{student.user_name}}</td>
                                <td>{{student.department}}</td>
                                <td>{{student.class_admin}}</td>
                            </tr>
                        </tbody>
                    </table>
            </div>    <!--评价填写-->
            <form action="{% url 's_e_save' %}" name="star" method="post">
            {% csrf_token %}
                <input name="_csrf" type="hidden" id="_csrf" value="MDZSNDhmd0kAaRFmSTFABHtlf2RtLD8sWkIxewANNiJ2fwB8DlA5Hg==">
                <h1 class="titleOne">2016-2017学年  下学期总评</h1>
                <div class="colorPieceOne"></div>
                
                <!-- 学期总评-->
                <div class="row">
                    <div class="col-lg-10   col-xs-8 generalComment">
                        <div class="row">
                            <div class="col-lg-4  col-xs-6 titleTwo">
                                <span class="span1">学期总评</span>
                            </div>
                            <div class="col-lg-8 col-xs-6 colorPieceTwo"></div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-10 col-xs-8 colorPieceThree"></div>
                </div>
                 <!--校园四大项打分+文字评价-->
                <div class="row starRow">
                    <div class="col-lg-4 col-xs-5 col-lg-offset-2 col-md-offset-1 ">
                        <span class="span2">总体评价：</span>
                        <div class="starWidget">
        `                   <span ></span>
                            <span></span>
                            <span></span>
                            <span></span>
                            <span></span>
                            <input type="text" hidden name="zt" value="5" required>
                        </div>                
                    </div>
                    <div class="starRowRight col-lg-5 col-xs-6">
                        <span>学校整体怎么样</span>
                        <span class="more">文字评价</span>
                    </div>   
                </div>
                 <div id="ztpj" class="boxt">
                    <textarea type="text" placeholder="意见反馈" rows="8" name="ztpjw" autofocus=""></textarea><br> 
                    <input type="text" placeholder="热词" name="ztpjr">
                    <a class="btn btn-danger" style="padding:6px 9px;" onclick="close_w(&#39;ztpj&#39;);">关闭 </a>
                    <a class="btn btn-success" style="padding:6px 9px;" onclick="close_w(&#39;ztpj&#39;);">提交</a>
                </div>
                <div class="row starRow">
                    <div class="col-lg-4 col-xs-5 col-lg-offset-2 col-md-offset-1 ">
                        <span class="span2">教学环境：</span>
                        <div class="starWidget">
                            <span></span>
                            <span></span>
                            <span></span>
                            <span></span>
                            <span></span>
                            <input type="text" hidden name="jxhj" required>
                        </div>
                    </div>
                    <div class="starRowRight col-lg-5 col-xs-6">
                        <span>教学设施，教学内容，师资力量等</span>
                        <span class="more">文字评价</span>
                    </div>   
                </div>
                <div id="jxhj" class="boxt">
                    <textarea type="text" placeholder="意见反馈" rows="8" name="jxhjw" autofocus=""></textarea><br> 
                    <input type="text" placeholder="热词" name="jxhjr">
                    <a class="btn btn-danger" style="padding:6px 9px;" onclick="close_w(&#39;jxhj&#39;);">关闭 </a>
                    <a class="btn btn-success" style="padding:6px 9px;" onclick="close_w(&#39;jxhj&#39;);">提交</a>
                </div>
                <div class="row starRow">
                    <div class="col-lg-4 col-xs-5 col-lg-offset-2 col-md-offset-1 ">
                        <span class="span2">住宿环境：</span>
                        <div class="starWidget">
                            <span></span>
                            <span></span>
                            <span></span>
                            <span></span>
                            <span></span>
                            <input type="text"  name="zshj" hidden required>
                        </div>
                    </div>
                    <div class="starRowRight col-lg-5 col-xs-6">
                        <span>寝室安保，家具质量，水电网络系统，舒适度</span>
                        <span class="more">文字评价</span>
                    </div>   
                </div>
                <div id="zshj" class="boxt">
                    <textarea type="text" placeholder="意见反馈" rows="8" name="zshjw" autofocus=""></textarea><br> 
                    <input type="text" placeholder="热词" name="zshjr">
                    <a class="btn btn-danger" style="padding:6px 9px;" onclick="close_w(&#39;zshj&#39;);">关闭 </a>
                    <a class="btn btn-success" style="padding:6px 9px;" onclick="close_w(&#39;zshj&#39;);">提交</a>
                </div>
                <div class="row starRow">
                    <div class="col-lg-4 col-xs-5 col-lg-offset-2 col-md-offset-1 ">
                        <span class="span2">饮食环境：</span>
                        <div class="starWidget ">
                            <span></span>
                            <span></span>
                            <span></span>
                            <span></span>
                            <span></span>
                            <input type="text" name="yshj" value="3" hidden required>
                        </div>
                    </div>
                    <div class="starRowRight col-lg-5 col-xs-6">
                        <span>寝室安保，家具质量，水电网络系统，舒适度</span>
                        <span class="more">文字评价</span>
                    </div>   
                </div>
            <div id="yshj" class="boxt">
                <textarea type="text" placeholder="意见反馈" rows="8" name="yshjw" autofocus=""></textarea><br> 
                <input type="text" placeholder="热词" name="yshjr">
                <a class="btn btn-danger" style="padding:6px 9px;" onclick="close_w(&#39;yshj&#39;);">关闭 </a>
                <a class="btn btn-success" style="padding:6px 9px;" onclick="close_w(&#39;yshj&#39;);">提交</a>
            </div>
            <div class="row spacingThree">
                <div class="col-lg-11 " style="background-color:#e1e1e1;height: 2px;"></div>
            </div>
            <div class="row spacingFour">
                <div class="col-lg-9 " style="height: 80px;">

                </div>
            </div>
            <!--课程评价+教师信息-->
            <div class="row">
                <div class="col-lg-10   col-xs-9 curriculumEvaluation">
                    <div class="row">
                        <div class="col-lg-4  col-xs-7 titleTwo">
                            <span class="span1">课程评价</span>
                        </div>
                        <div class="col-lg-8 col-xs-5 colorPieceTwo"></div>
                    </div>
                </div>
            </div>
            <!--任课教师信息 -->
            <ul class="teacher-list list-unstyled row">
            {% for course in v_list %}
                <li class="col-lg-3 col-md-4 col-sm-6">
                    <div class="teacher-item " cname="课程：{{course.course_name}}" tname="教师：{{course.teacher_name}}" teacher_id="{{course.teacher_id}}"  course_id="{{course.course_id}}">
                        <img src="/static/evaluate/img/js.png">
                        <span class="course"> {{course.course_name}}</span>
                        <span class="teacher"> {{course.teacher_name}}</span>
                    </div>
                </li>
            {% endfor %} 
            </ul>
        <div class="row colorPieceFive">
            <div class="col-lg-11 " style="background-color:#e1e1e1;height: 2px;"></div>
        </div>
       <!-- 补充评价-->
        <div class="row">
            <div class="col-lg-10   col-xs-10 supplementaryEvaluation">
                <div class="row">
                    <div class="col-lg-4  col-xs-7 titleTwo">
                        <span class="span1">补充评价</span>
                    </div>
                    <div class="col-lg-8 col-xs-5 colorPieceTwo"></div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-10   col-xs-10 colorPieceThree"></div>
        </div>
        <div class="row">
            <div class="col-md-10 " style="margin-left: 74px; margin-top: 40px;">
                <div class="longtext">
    	           <textarea name="bcpj" rows="15" placeholder="请填写意见"></textarea>
                </div>
               <div class="checkgroup">
	               <p>以下勾选的职能部门将收到我的补充评价：</p>
    	           <label>
                        <input type="checkbox" name="org_1" value="教务处"> 教务处
                    </label>
                    <label>
                        <input type="checkbox" name="org_2" value="保卫处"> 保卫处
                    </label>
                    <label>
                        <input type="checkbox" name="org_3" value="财务处"> 财务处
                    </label>
                    <label>
                        <input type="checkbox" name="org_4" value="校团委" > 校团委
                    </label>
                    <label>
                        <input type="checkbox" name="org_5" value="发展规划处"> 后勤基建处
                    </label>
                    <label>
                        <input type="checkbox" name="org_6" value="发展规划处"> 发展规划处
                    </label>
                </div> 
            </div>
        </div>
        <div class="separator"></div>
        <div class="text-center">
            <input type="submit" id="submit" value="评价完成，提交">
        </div>
    </form>
</div>

        <!-- 教师评价模态框 -->

        <div id="ajaxDialog" class="fade modal" role="dialog" tabindex="-1">
            <div class="modal-dialog modal-lg">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h2 id="a"></h2> <h2 id="b"> </h2>
                    </div>
                    <div class="modal-body">
                        <form id="ajaxForm" action="{% url 's_evaluate_save_ajax' %}" method="post">
                        {% csrf_token %}
                        <!--模态框内容-->
                        <input name="teacher_id" type="hidden">
                        <input name="course_id" type="hidden">
                        <div class="container">
                            <div class="col-md-4 colorPieceEight">
                                <div class="row colorPieceSix">
                                    <div class="col-md-12">
                                        <span class="span2">课堂风采：</span>
                                        <div class="starWidget">
                                            <span></span>
                                            <span></span>
                                            <span></span>
                                            <span></span>
                                            <span></span>
                                            <input type="hidden" name="ktfc">
                                        </div> 
                                    </div>
                                </div>
                                <div class="row colorPieceSix ">
                                    <div class="col-md-12">
                                        <span class="span2">课后辅导：</span>
                                        <div class="starWidget">
                                            <span></span>
                                            <span></span>
                                            <span></span>
                                            <span></span>
                                            <span></span>
                                            <input type="hidden" name="khfd">
                                        </div>
                                    </div>
                                </div>
                                <div class="row colorPieceSix">
                                    <div class="col-md-12">
                                        <span class="span2">人物魅力：</span>
                                        <div class="starWidget">
                                            <span></span>
                                            <span></span>
                                            <span></span>
                                            <span></span>
                                            <span></span>
                                            <input type="hidden" name="rwml">
                                        </div> 
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 colorPieceSeven">
                                <textarea type="text" class="form-control" name="totw" placeholder="意见反馈" rows="8" autofocus=""></textarea>
                                <input type="text" class="form-control" name="totr" placeholder="热词">      
                            </div>
                        </div>
                        <div class="result-container">
                            <div class="separator"></div>
                            <div class="result"></div>
                        </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                    	<button class="btn btn-danger" data-dismiss="modal">关闭</button>
                    	<button class="btn btn-primary" id="ajaxSubmit">提交</button>
                    </div>
                </div>
            </div>
        </div>   
    </div>
</div>
<!--联系模态框-->
            <div class="modal fade" id="notice" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog" style="width:1000px">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                            <h4 class="modal-title" id="myModalLabel">敬爱的用户</h4>
                        </div>
                        <div class="modal-body">
                            使用中遇到问题，请发邮件反馈。谢谢您！
                            1432969079@qq.com
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
                        </div>
                    </div><!-- /.modal-content -->
                </div><!-- /.modal-dialog -->
            </div>
<footer class="footer">
    <div class="container">
        <p class="pull-left">© 校园互动评价平台 2017</p>
    </div>
</footer>

<script src="/static/evaluate/js/jquery.js"></script>
<script src="/static/evaluate/js/student1.js"></script>
<script src="/static/evaluate/js/yii.js"></script>
<script src="/static/evaluate/js/yii.gridView.js"></script>
<script src="/static/evaluate/js/star.js"></script>
<script src="/static/evaluate/js/bootstrap.js"></script>
<script type="text/javascript">jQuery(document).ready(function () {
jQuery('#w0').yiiGridView({"filterUrl":"\/evaluation\/web\/index.php?r=student-basic%2Findex","filterSelector":"#w0-filters input, #w0-filters select"});
jQuery('#ajaxDialog').modal({"show":false});
});</script>

</body></html>
